Tootfinder

Opt-in global Mastodon full text search. Join the index!

@khalidabuhakmeh@mastodon.social
2024-02-16 18:10:22

Hey @…, from your brainteaser the other day. I realized that #dotnet `Decimal` has a `Scale` property that matches how many decimal places were initialized.
It's accessible via the `Scale` property, but memory profiling shows that scale is stored as a…

A collection of decimals with Scale showing
dotMemory in JetBrains Rider showing the decimal _flag field.
@ruario@vivaldi.net
2024-03-24 19:03:25

@… @… Oh and other tip when thinking of time in decimal. It also maps nicely to percentages of the day as that is just a division of the day by 100 instead of 10 (or 1000 for .beats).
Sometimes I read my watches and think of them in…

@khalidabuhakmeh@mastodon.social
2024-02-16 18:10:22

Hey @…, from your brainteaser the other day. I realized that #dotnet `Decimal` has a `Scale` property that matches how many decimal places were initialized.
It's accessible via the `Scale` property, but memory profiling shows that scale is stored as a…

A collection of decimals with Scale showing
dotMemory in JetBrains Rider showing the decimal _flag field.
@ruario@vivaldi.net
2024-03-25 12:29:29

@… @… This is also why multi hand decimal watches and clocks with analog faces are so rare in this day and age. Precisely because they are non-trivial to produce and you are doing it for a tiny niche. The German watch company Rainer Nienab…

@ruario@vivaldi.net
2024-03-24 18:53:05

@… @… if you don't like the single handed watch. I also run my Casio F-91W with a sensorwatch module programmed for Swatch .beats. Since this divides the day by 1000 and French Decimal by 10, they directly map to one the other.